Part Number Hot Search : 
TLHR4405 200D05 TFS420A1 2N2222A AD9100SD SG6848DZ 1SN15T1G 60033
Product Description
Full Text Search
 

To Download SAF-C508-4RM Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  never stop thinking. microcontrollers data sheet, august 2000 c508 8-bit cmos microcontroller
edition 2000-08 published by infineon technologies ag, st.-martin-strasse 53, d-81541 mnchen, germany ? infineon technologies ag 2000. all rights reserved. attention please! the information herein is given to describe certain components and shall not be considered as warranted characteristics. terms of delivery and rights to technical change reserved. we hereby disclaim any and all warranties, including but not limited to warranties of non-infringement, regarding circuits, descriptions and charts stated herein. infineon technologies is an approved cecc manufacturer. information for further information on technology, delivery terms and conditions and prices please contact your nearest infineon technologies office in germany or our infineon technologies representatives worldwide (see address list). warnings due to technical requirements components may contain dangerous substances. for information on the types in question please contact your nearest infineon technologies office. infineon technologies components may only be used in life-support devices or systems with the express written approval of infineon technologies, if a failure of such components can reasonably be expected to cause the failure of that life-support device or system, or to affect the safety or effectiveness of that device or system. life support devices or systems are intended to be implanted in the human body, or to support and/or maintain and sustain and/or protect human life. if they fail, it is reasonable to assume that the health of the user or other persons may be endangered.
microcontrollers data sheet, august 2000 never stop thinking. c508 8-bit cmos microcontroller
enhanced hooks technology tm is a trademark and patent of metalink corporation licensed to infineon technologies. c508 revision history: 2000-08 previous version: 1999-10 page subjects (major changes since last revision) several typo errors corrected 27 figure 10 corrected we listen to your comments any information within this document that you feel is wrong, unclear or missing at all? your feedback will help us to continuously improve the quality of this document. please send your proposal (including a reference to this document) to: mcdocu.comments@infineon.com
data sheet 1 2000-08 c508 8-bit cmos microcontroller c500 family c508 ? fully compatible to standard 8051 microcontroller ? superset of the 8051 architecture with 8 datapointers ? 10 to 20 mhz internal cpu clock (using built-in pll with a factor of 2) C external clock of 5 - 10 mhz at 50% duty cycle C 300 ns instruction cycle time at 20 mhz cpu clock ? 32 kbyte on-chip rom/otp (with optional rom protection) ? 256 byte on-chip ram ? 1024 byte on-chip xram ? six 8-bit ports C ports 1 and 2 with enhanced current sinking capabilities of 10 ma (total max. of 100 ma) C port 4 with pure analog/digital input channels further features are listed next page. figure 1 c508 functional units mcb04022 i/o i/o i/o i/o on-chip emulation support module watchdog timer timer 2 10-bit adc oscillator watchdog xram 1 k x 8 xram 256 x 8 t0 t1 rom/otp 32 k x 8 port 3 port 2 port 1 port 0 8-bit usart cpu 8 datapointers port 5 port 4 8 digital/analog inputs i/o 10-bit compare unit 16-bit capture/compare unit
c508 data sheet 2 2000-08 ? three 16-bit timers/counters C timer 0/1 (c501 compatible) C timer 2 with 4 channels for 16-bit capture/compare operation ? capture/compare unit for pwm signal generation C 3-channel, 16-bit capture/compare unit C 1-channel, 10-bit compare unit ? full duplex serial interface with programmable baudrate generator (usart) ? 8-channel 10-bit a/d converter ? 19 interrupt vectors with four priority levels ? on-chip emulation support logic (enhanced hooks technology tm ) ? programmable 15-bit watchdog timer ? oscillator watchdog ? fast power on reset ? power saving modes C slow-down mode C idle mode (can be combined with slow-down mode) C software power-down mode with wake up capability through int0 or int7 ? ale switch-off capability for reduction in rfi emission ? p-mqfp-64-1, p-sdip-64-2 packages ? temperature ranges: sab-c508 t a = 0 to 70 c saf-c508 t a = C 40 to 85 c ordering information the ordering code for infineon technologies microcontrollers provides an exact reference to the required product. this ordering code indentifies: ? the derivative itself, i.e. its function set ? the specified temperature range ? the package and the type of delivery for the available ordering codes for the c508, please refer to the product information microcontrollers which summarizes all available microcontroller variants. note: the ordering codes for the mask-rom versions are defined for each product after verification of the respective rom code.
c508 data sheet 3 2000-08 figure 2 logic symbol mcl04023 c508 port 2 8-bit digital i/o port 3 8-bit digital i/o port 4 8-bit digital/ analog inputs port 5 8-bit digital i/o xtal1 xtal2 reset ea ale psen v dd v ss port 1 8-bit digital i/o port 0 8-bit digital i/o v dda v ssa v aref v agnd
c508 data sheet 4 2000-08 figure 3 pin configuration for p-mqfp-64-1 package (top view) mcp04024 p2.5/a13 49 p2.4/a12 50 51 p2.3/a11 52 p2.2/a10 p2.1/a9 53 54 p2.0/a8 55 v ss 56 57 p0.0/ad0 58 p0.1/ad1 p0.2/ad2 59 60 p0.3/ad3 61 p0.4/ad4 p0.5/ad5 62 63 p0.6/ad6 64 p0.7/ad7 48 p2.6/a14 47 p2.7/a15 46 psen ale 45 44 v dd 43 xtal1 42 41 xtal2 40 p3.7/rd p3.6/wr 39 38 p3.5/t1 37 p3.4/t0 p3.3/int1 36 35 p3.2/int0 34 p3.1/txd p3.0/rxd 33 32 p1.0/cout3 31 p1.1/ctrap 30 p1.2/cc0 p1.3/cout0 29 28 p1.4/cc1 27 p1.5/cout1 p1.6/cc2 26 25 p1.7/cout2 24 v ss 23 22 p5.0/t2cc0/int3 21 p5.1/t2cc1/int4 p5.2/t2cc2/int5 20 19 p5.3/t2cc3/int6 18 p5.4/int2 p5.5/int9 17 v dd 1 reset ea 23 v dda 4 p4.0/an0 56 p4.1/an1 7 p4.2/an2 p4.3/an3 89 p4.4/an4 10 p4.5/an5 p4.6/an6 11 12 p4.7/an7 13 14 15 p5.7/int7 16 p5.6/int8 v ssa v aref v agnd v dd v ss c508
c508 data sheet 5 2000-08 figure 4 pin configuration for p-sdip-64-2 package (top view) mcp04025 c508 p0.0/ad0 1 p0.1/ad1 2 3 p0.2/ad2 p0.3/ad3 4 5 p0.4/ad4 6 p0.5/ad5 p0.6/ad6 7 8 p0.7/ad7 9 reset ea 10 11 v dda p4.0/an0 p4.1/an1 p4.2/an2 p4.3/an3 12 13 14 15 16 17 p4.4/an4 p4.5/an5 18 p4.6/an6 19 20 p4.7/an7 21 22 23 p5.7/int7 p5.6/int8 24 p5.5/int9 25 26 p5.4/int2 p5.3/t2cc3/int6 27 28 29 30 31 32 v ssa v aref v agnd p5.2/t2cc2/int5 p5.1/t2cc1/int4 p5.0/t2cc0/int3 v dd v ss 64 v dd 63 62 p2.0/a8 p2.1/a9 61 60 p2.2/a10 59 p2.3/a11 p2.4/a12 58 57 p2.5/a13 56 p2.6/a14 p2.7/a15 55 54 psen 53 ale 52 51 50 xtal1 xtal2 49 48 p3.7/rd 47 p3.6/wr p3.5/t1 46 45 p3.4/t0 44 p3.3/int1 p3.2/int0 43 42 p3.1/txd 41 p3.0/rxd p1.0/cout3 40 39 p1.1/ctrap 38 p1.2/cc0 p1.3/cout0 37 36 p1.4/cc1 35 p1.5/cout1 p1.6/cc2 34 33 p1.7/cout2 v ss v dd v ss
c508 data sheet 6 2000-08 table 1 pin defintions and functions sym- bol pin numbers i/o 1) function p-mqfp-64 p-sdip-64 p1.0- p1.7 25 - 32 32 31 30 29 28 27 26 25 33 - 40 40 39 38 37 36 35 34 33 i/o port 1 is an 8-bit quasi-bidirectional port with internal pull-up transistors. port 1 pins can be used for digital input/output. port 1 pins that have 1s written to them are pulled high by the internal pull-up transistors and in that state can be used as inputs. as inputs, port 1 pins being externally pulled low will source current ( i il , in the dc characteristics) because of the internal pullup transistors. the output latch corresponding secondary function must be programmed to a one (1) for that function to operate. as secondary functions, port 1 contains the capture/compare inputs/outputs as well as the ccu trap input. port 1 pins have led drive capability of up to 10 ma sinking current per pin. the secondary functions from the ccu unit are assigned to the pins of port 1 as follows: p1.0/cout3 10-bit compare channel output p1.1/ctrap ccu trap input p1.2/cc0 input/output of capture/ compare channel 0 p1.3/cout0 output of capture/compare channel 0 p1.4/cc1 input/output of capture/ compare channel 1 p1.5/cout1 output of capture/compare channel 1 p1.6/cc2 input/output of capture/ compare channel 2 p1.7/cout2 output of capture/compare channel 2
c508 data sheet 7 2000-08 reset 1 9 i reset a high level on this pin for one machine cycle while the oscillator is running resets the device. an internal diffused resistor to v ss permits power-on reset using only an external capacitor to v dd . p3.0- p3.7 33 - 40 33 34 35 36 37 38 39 40 41 - 48 41 42 43 44 45 46 47 48 i/o port 3 is an 8-bit quasi-bidirectional port with internal pull-up transistors. port 3 pins that have 1s written to them are pulled high by the internal pull-up transistors and in that state can be used as inputs. as inputs, port 3 pins being externally pulled low will source current ( i il , in the dc characteristics) because of the internal pullup transistors. the output latch corresponding secondary function must be programmed to a one (1) for that function to operate (except for txd and wr ). the secondary functions are assigned to the pins of port 3 as follows: p3.0/rxd receiver data input (asynch.) or data input/output (synch.) of serial interface p3.1/txd transmitter data output (asynch.) or clock output (synch.) of serial interface p3.2/int0 external interrupt 0 input/timer 0 gate control input p3.3/int1 external interrupt 1 input/timer 1 gate control input p3.4/t0 timer 0 counter input p3.5/t1 timer 1 counter input p3.6/wr wr control output; latches the data byte from port 0 into the external data memory p3.7/rd rd control output; enables the external data memory table 1 pin defintions and functions (contd) sym- bol pin numbers i/o 1) function p-mqfp-64 p-sdip-64
c508 data sheet 8 2000-08 p2.0- p2.7 47 - 54 55 - 62 i/o port 2 is an 8-bit quasi-bidirectional i/o port with internal pullup transistors. port 2 pins that have 1s written to them are pulled high by the internal pullup resistors, and in that state can be used as inputs. as inputs, port 2 pins being externally pulled low will source current ( i il , in the dc characteristics) because of the internal pullup transistors. port 2 emits the high-order address byte during fetches from external program memory and during accesses to external data memory that use 16-bit addresses (movx @dptr). in this application it uses strong internal pullup transistors when issuing 1s. during accesses to external data memory that use 8-bit addresses (movx @ri), port 2 issues the contents of the p2 special function register and uses only the internal pullup transistors. as i/o functions, port 2 pins also have led drive capability of up to 10 ma sinking current per pin. xtal1 42 50 i xtal1 input to the inverting oscillator amplifier and input to the internal clock generator circuits. to drive the device from an external clock source, xtal1 should be driven, while xtal2 is left unconnected. minimum and maximum high and low times as well as rise/fall times specified in the ac characteristics must be observed. xtal2 41 49 o xtal2 output of the inverting oscillator amplifier. table 1 pin defintions and functions (contd) sym- bol pin numbers i/o 1) function p-mqfp-64 p-sdip-64
c508 data sheet 9 2000-08 p4.0- p4.7 5 - 12 13 - 20 i port 4 is an 8-bit uni-directional input port to the a/d converter. port pins can be used for digital input, if voltage levels simultaneously meet the specifications for high/low input voltages and for the eight multiplexed analog inputs. psen 46 54 o the program strobe enable output is a control signal that enables the external program memory to the bus during external fetch operations. it is activated every one and a half oscillator periods except during external data memory accesses. remains high during internal program execution. this pin should not be driven during reset operation. ale 45 53 o the address latch enable output is used for latching the low-byte of the address into external memory during normal operation. it is activated every one and a half oscillator periods except during an external data memory access. when instructions are executed from internal rom (ea = 1) the ale generation can be disabled by bit eale in sfr syscon. this pin should not be driven during reset operation. ea 210i external access enable when held at high level, instructions are fetched from the internal rom when the pc is less than 8000 h . when held at low level, the c508 fetches all instructions from external program memory. this pin should not be driven during reset operation. table 1 pin defintions and functions (contd) sym- bol pin numbers i/o 1) function p-mqfp-64 p-sdip-64
c508 data sheet 10 2000-08 p0.0- p0.7 57 - 64 1 - 8 i/o port 0 is an 8-bit open-drain bidirectional i/o port. port 0 pins that have 1s written to them float, and in that state can be used as high-impedance inputs. port 0 is also the multiplexed low-order address and data bus during accesses to external program or data memory. in this application it uses strong internal pullup transistors when issuing 1s. port 0 also outputs the code bytes during program verification in the c508-4r. external pullup resistors are required during program verification. p5.0- p5.7 15 - 22 23 - 30 i/o port 5 is a an 8-bit quasi-bidirectional i/o port with internal pullup transistors. port 5 pins that have 1s written to them are pulled high by the internal pullup resistors, and in that state can be used as inputs. as inputs, port 5 pins being externally pulled low will source current ( i il , in the dc characteristics) because of the internal pullup transistors. as secondary functions, port 5 contains the interrupt and timer 2 capture/compare pins. they are assigned to the pins as follows: p5.0/t2cc0/int3 t2 compare/capture output 0/interrupt 3 input p5.1/t2cc1/int4 t2 compare/capture output 1/interrupt 4 input p5.2/t2cc2/int5 t2 compare/capture output 2/interrupt 5 input p5.3/t2cc3/int6 t2 compare/capture output 3/interrupt 6 input p5.4/int2 interrupt 2 input p5.5/int9 interrupt 9 input p5.6/int8 interrupt 8 input p5.7/int7 interrupt 7 input table 1 pin defintions and functions (contd) sym- bol pin numbers i/o 1) function p-mqfp-64 p-sdip-64
c508 data sheet 11 2000-08 v ss 24, 43, 55 32, 51, 63 C ground (0 v) v dd 23, 44, 56 31, 52, 64 C power supply (+5v) v dda 311C analog power supply (+ 5 v) v ssa 412C analog ground (0 v) v aref 13 21 C reference voltage for the a/d converter. v agnd 14 22 C reference ground for the a/d converter. 1) i=input o = output table 1 pin defintions and functions (contd) sym- bol pin numbers i/o 1) function p-mqfp-64 p-sdip-64
c508 data sheet 12 2000-08 figure 5 block diagram of the c508 c508 mcb04026 oscillator watchdog osc & timing pll, factor of 2 cpu 8 datapointers timer 0 timer 1 timer 2 with 4 pwm channels interrupt unit a/d converter 10-bit s&h xram 1024 x 8 ram 256 x 8 rom/otp 32 k x 8 port 0 port 1 port 2 port 3 emulation support logic port 0 8-bit digital i/o v dd v ss xtal1 xtal2 reset ale psen ea port 1 8-bit digital i/o port 2 8-bit digital i/o port 3 8-bit digital i/o programmable watchdog timer capture/compare unit usart baudrate generator mux port 5 8-bit digital i/o port 4 8-bit analog/ digital input port 5 port 4 v aref v agnd
c508 data sheet 13 2000-08 cpu the c508 is efficient both as a controller and as an arithmetic processor. it has extensive facilities for binary and bcd arithmetic and excels in its bit-handling capabilities. efficient use of program memory results from an instruction set consisting of 44% one-byte, 41% two-byte, and 15% three-byte instructions. with a 10 mhz external crystal (giving a 20 mhz cpu clock), 58% of the instructions execute in 300 ns. for an 8 mhz crystal, the corresponding time is 375 ns. special function register psw (address d0 h ) reset value: 00 h bit function cy carry flag used by arithmetic instructions. ac auxiliary carry flag used by instructions which execute bcd operations. f0 general purpose flag 0 rs1 rs0 register bank select control bits these bits are used to select one of the four register banks. ov overflow flag used by arithmetic instructions. f1 general purpose flag 1 p parity flag set/cleared by hardware after each instruction to indicate an odd/ even number of one bits in the accumulator. cy ac f0 rs1 rs0 ov f1 p d0 h psw d7 h d6 h d5 h d4 h d3 h d2 h d1 h d0 h bit no. msb lsb rs1 rs0 function 0 0 bank 0 selected, data address 00 h -07 h 0 1 bank 1 selected, data address 08 h -0f h 1 0 bank 2 selected, data address 10 h -17 h 1 1 bank 3 selected, data address 18 h -1f h
c508 data sheet 14 2000-08 memory organization the c508 cpu manipulates operands in the following five address spaces: ? up to 64 kbytes of program memory: 32k rom for c508-4r 32k otp for c508-4e ? up to 64 kbytes of external data memory ? 256 bytes of internal data memory ? 1024 bytes of internal xram data memory ? a 128-byte special function register area figure 6 illustrates the memory address spaces of the c508. figure 6 c508 memory map mcs04029 special function regs. ff h 80 h direct addr. indirect addr. internal ram 00 h 7f h internal ram "internal data space" internal xram (1 kbyte) ffff h fc00 h ext. data memory 0000 h fbff h ext. data memory "data space" 8000 h ffff h ext. "code space" ext. (ea = 0) 7fff h 0000 h int. (ea = 1) alternatively
c508 data sheet 15 2000-08 reset and system clock operation the reset input is an active high input. since the reset is synchronized internally, the reset pin must be held high for at least two machine cycles (6 oscillator periods) while the oscillator is running. during reset, pins ale and psen are configured as inputs and should not be stimulated externally. (external stimulation at these lines during reset activates several reserved test modes. this, in turn, may cause unpredictable output operations at several port pins). at the reset pin, a pull-down resistor is internally connected to v ss to allow a power-up reset with an external capacitor only. an automatic power-up reset can be obtained, when v dd is applied, by connecting the reset pin to v dd via a capacitor. after v dd has been turned on, the capacitor must hold the voltage level at the reset pin for a specific time to effect a complete reset. the time required for a reset operation includes the oscillator start-up time, the pll lock time and the time for 2 machine cycles, which must be at least 10 - 20 ms, under normal conditions. this requirement is typically met using a capacitor of 4.7 to 10 m f. the same considerations apply if the reset signal is generated externally. in each case, it must be assured that the oscillator has started up properly and that at least two machine cycles have passed before the reset signal goes inactive. figure 7 shows the possible reset circuitries. figure 7 reset circuitries mcs04030 c508 reset v dd + c508 reset c508 reset & + v dd a) b) c)
c508 data sheet 16 2000-08 figure 8 shows the recommended oscillator circuitries for crystal and external clock operation. figure 8 recommended oscillator circuitries mcs04034 xtal1 c508 xtal2 5-10 mhz c c c = 20 pf + 10 pf for crystal operation (incl. stray capacitance) crystal oscillator mode xtal1 xtal2 external oscillator signal n.c. driving from external source
c508 data sheet 17 2000-08 enhanced hooks emulation concept the enhanced hooks emulation concept of the c500 microcontroller family is a new, innovative way to control the execution of c500 mcus and to gain extensive information on the internal operation of the controllers. emulation of on-chip rom based programs is possible, too. each c500 production chip has built-in logic for the support of the enhanced hooks emulation concept. therefore, no costly bond-out chips are necessary for emulation. this also ensure that emulation and production chips are identical. the enhanced hooks technology tm , which requires embedded logic in the c500 allows the c500 when used with an eh-ic, to function in a manner similar to a bond-out chip. this simplifies the design and reduces costs of an ice-system. ice-systems using an eh-ic and a compatible c500 are able to emulate all operating modes of the different versions of the c500 microcontrollers. this includes emulation of rom, rom with code rollover and romless modes of operation. it is also able to operate in single step mode and to read the sfrs after a break. figure 9 basic c500 mcu enhanced hooks concept configuration port 0, port 2 and some of the control lines of the c500 based mcu are used by enhanced hooks emulation concept to control the operation of the device during emulation and to transfer information about the program execution and data transfer between the external emulation hardware (ice-system) and the c500 mcu. mcs02647 syscon pcon tcon reset ea psen ale port 0 port 2 i/o ports optional port 3 port 1 c500 mcu interface circuit enhanced hooks rport 0 rport 2 rtcon rpcon rsyscon tea tale tpsen eh-ic target system interface ice-system interface to emulation hardware
c508 data sheet 18 2000-08 special function registers the registers, except the program counter and the four general purpose register banks, reside in the special function register area. the 81 special function registers (sfrs) in the standard and mapped sfr area include pointers and registers that provide an interface between the cpu and the other on-chip peripherals. all sfrs with addresses where address bits 0-2 are 0 (e.g. 80 h , 88 h , 90 h , 98 h , , f0 h , f8 h ) are bit-addressable. the sfrs of the c508 are listed in table 2 and table 3 . in table 2 they are organized in groups which refer to the functional blocks of the c508. table 3 illustrates the contents of the sfrs in numeric order of their addresses.
c508 data sheet 19 2000-08 table 2 special function registers - functional blocks block symbol name addr. contents after reset cpu acc b dph dpl dpsel psw sp syscon 4) vr0 1) vr1 1) vr2 1) accumulator b-register data pointer, high byte data pointer, low byte data pointer select register program status word register stack pointer system control register version register 0 version register 1 version register 2 e0 h 2) f0 h 2) 83 h 82 h 92 h d0 h 2) 81 h b1 h fc h fd h fe h 00 h 00 h 00 h 00 h xxxxx000 b 5) 00 h 07 h xx10xx01 b 5) c5 h 08 h 3) a/d- converter adcon0 4) adcon1 addath addatl a/d converter control register 0 a/d converter control register 1 a/d converter data register high byte a/d converter start register low byte d8 h 2) dc h d9 h da h 00x00000 b 5) 01xxx000 b 5) 00 h 00xxxxxx b 5) interrupt system ien0 4) ien1 4) ien2 ien3 ip0 4) ip1 tcon 4) t2con 4) scon 4) ircon eint interrupt enable register 0 interrupt enable register 1 interrupt enable register 2 interrupt enable register 3 interrupt priority register 0 interrupt priority register 1 timer control register timer 2 control register serial channel control register interrupt request control register external interrupt control register a8 h 2) b8 h 2) 9a h be h a9 h b9 h 88 h 2) c8 h 2) 98 h 2) c0 h 2) fb h 00 h x0000000 b xx0000xx b xxx000xx b 00 h xx000000 b 5) 00 h 00 h 00 h x0000000 b xx000000 b xram xpage syscon 4) page address register for extended on-chip xram and can controller system control register 91 h b1 h 00 h xx10xx01 b 5) ports p0 p1 p2 p3 p4 p5 port 0 port 1 port 2 port 3 port 4, analog/digital input port 5 80 h 2) 90 h 2) a0 h 2) b0 h 2) db h f8 h 2) ff h ff h ff h ff h C ff h serial channel adcon0 4) pcon 4) sbuf scon srell srelh a/d converter control register 0 power control register serial channel buffer register serial channel control register serial channel reload register, low byte serial channel reload register, high byte d8 h 2) 87 h 99 h 98 h 2) aa h ba h 00x00000 b 5) 00 h xx h 5) 00 h d9 h xxxxxx11 b 5)
c508 data sheet 20 2000-08 timer 0/ timer 1 tcon th0 th1 tl0 tl1 tmod timer 0/1 control register timer 0, high byte timer 1, high byte timer 0, low byte timer 1, low byte timer mode register 88 h 2) 8c h 8d h 8a h 8b h 89 h 00 h 00 h 00 h 00 h 00 h 00 h timer 2 ccen t2cch1 t2cch2 t2cch3 t2ccl1 t2ccl2 t2ccl3 crch crcl th2 tl2 t2con compare/capture enable register compare/capture register 1, high byte compare/capture register 2, high byte compare/capture register 3, high byte compare/capture register 1, low byte compare/capture register 2, low byte compare/capture register 3, low byte comp./rel./capt. register, high byte comp./rel./capt. register, low byte timer 2, high byte timer 2, low byte timer 2 control register c1 h c3 h c5 h c7 h c2 h c4 h c6 h cb h ca h cd h cc h c8 h 2) 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h compare/ capture unit ct1con ccpl ccph ct1ofl ct1ofh cmsel0 cmsel1 coini ccl0 cch0 ccl1 cch1 ccl2 cch2 trcon cotrap ccir ccie 4) ct2con cp2l cp2h cmp2l cmp2h bcon compare timer 1 control register compare timer 1 period register, low byte compare timer 1 period register, high byte compare timer 1 offset register, low byte compare timer 1 offset register, high byte capture/compare mode select register 0 capture/compare mode select register 1 compare output initialization register capture/compare register 0, low byte capture/compare register 0, high byte capture/compare register 1, low byte capture/compare register 1, high byte capture/compare register 2, low byte capture/compare register 2, high byte trap enable control register compare output in trap state register capture/compare interrupt request flag reg. capture/compare interrupt enable register compare timer 2 control register compare timer 2 period register, low byte compare timer 2 period register, high byte compare timer 2 compare register, low byte compare timer 2 compare register, high byte block commutation control register e1 h de h df h e6 h e7 h e3 h e4 h e2 h f2 h f3 h f4 h f5 h f6 h f7 h ff h f9 h e5 h d6 h f1 h d2 h d3 h d4 h d5 h d7 h 00010000 b 00 h 00 h 00 h 00 h 00 h 00 h ff h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00010000 b 00 h xxxxxx00 b 5) 00 h xxxxxx00 b 5) 00 h table 2 special function registers - functional blocks (contd) block symbol name addr. contents after reset
c508 data sheet 21 2000-08 watchdog timer wdtl wdth wdtrel ien0 4) ien1 4) ip0 4) watchdog timer register, low byte watchdog timer register, high byte watchdog timer reload register interrupt enable register 0 interrupt enable register 1 interrupt priority register 0 84 h 85 h 86 h a8 h 2) b8 h 2) a9 h 00 h 00 h 00 h 00 h 00 h 00 h power save modes pcon 4) pcon1 6) power control register power control register 1 87 h 88 h 2) 00 h 0xx0xxxx b 5) 1) this sfr is a mapped sfr. for accessing this sfr, bit rmap in sfr syscon must be set. 2) bit-addressable special function registers 3) the content of this sfr varies with the actual step of the c508 (e.g. 01 h for the first step) 4) this special function register is listed repeatedly since some bits of it also belong to other functional blocks. 5) x means that the value is undefined and the location is reserved. 6) sfr is located in the mapped sfr area. for accessing this sfr, bit rmap in sfr syscon must be set. table 2 special function registers - functional blocks (contd) block symbol name addr. contents after reset
c508 data sheet 22 2000-08 table 3 contents of the sfrs, sfrs in numeric order of their addresses addr. register content after reset 1) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 80 h 2) p0 ff h .7 .6 .5 .4 .3 .2 .1 .0 81 h sp 07 h .7 .6 .5 .4 .3 .2 .1 .0 82 h dpl 00 h .7 .6 .5 .4 .3 .2 .1 .0 83 h dph 00 h .7 .6 .5 .4 .3 .2 .1 .0 84 h wdtl 00 h .7 .6 .5 .4 .3 .2 .1 .0 85 h wdth 00 h .7 .6 .5 .4 .3 .2 .1 .0 86 h wdtrel 00 h wdt psel .6 .5 .4 .3 .2 .1 .0 87 h pcon 00 h smod pds idls sd gf1 gf0 pde idle 88 h 2) tcon 00 h tf1 tr1 tf0 tr0 ie1 it1 ie0 it0 88 h 3) pcon1 0xx0- xxxx b ewpd C C ws C C C C 89 h tmod 00 h gate c/t m1 m0 gate c/t m1 m0 8a h tl0 00 h .7 .6 .5 .4 .3 .2 .1 .0 8b h tl1 00 h .7 .6 .5 .4 .3 .2 .1 .0 8c h th0 00 h .7 .6 .5 .4 .3 .2 .1 .0 8d h th1 00 h .7 .6 .5 .4 .3 .2 .1 .0 90 h 2) p1 ff h .7 .6 .5 .4 .3 .2 .1 .0 91 h xpage 00 h .7 .6 .5 .4 .3 .2 .1 .0 92 h dpsel xxxx- x000 b CCCCC.2.1.0 98 h 2) scon 00 h sm0 sm1 sm2 ren tb8 rb8 ti ri 99 h sbuf xx h .7 .6 .5 .4 .3 .2 .1 .0 9a ien2 xx00- 00xx b C C ect1 eccm ect2 ecem C C a0 h 2) p2 ff h .7 .6 .5 .4 .3 .2 .1 .0 a8 h 2) ien0 00 h ea wdt et2 es et1 ex1 et0 ex0 a9 h ip0 00 h owds wdts .5 .4 .3 .2 .1 .0 aa h srell d9 h .7 .6 .5 .4 .3 .2 .1 .0
c508 data sheet 23 2000-08 b0 h 2) p3 ff h rd wr t1 t0 int1 int0 txd rxd b1 h syscon xx10- xx01 b C C eale rmap C C xmap1 xmap0 b8 h 2) ien1 x000- 0000 b C swdt ex6 ex5 ex4 ex3 ex2 eadc b9 h ip1 xx00- 0000 b C C .5 .4 .3 .2 .1 .0 ba h srelh xxxx- xx11 b CCCCCC.1.0 be h ien3 xxx0- 00xx b C C C ex9 ex8 ex7 C C c0 h 2) ircon x000- 0000 b C tf2 iex6 iex5 iex4 iex3 iex2 iadc c1 h ccen 00 h coca h3 coca l3 coca h2 coca l2 coca h1 coca l1 coca h0 coca l0 c2 h t2ccl1 00 h .7 .6 .5 .4 .3 .2 .1 .0 c3 h t2cch1 00 h .7 .6 .5 .4 .3 .2 .1 .0 c4 h t2ccl2 00 h .7 .6 .5 .4 .3 .2 .1 .0 c5 h t2cch2 00 h .7 .6 .5 .4 .3 .2 .1 .0 c6 h t2ccl3 00 h .7 .6 .5 .4 .3 .2 .1 .0 c7 h t2 cch3 00 h .7 .6 .5 .4 .3 .2 .1 .0 c8 h 2) t2con 0000- x0x0 b t2ps i3fr i2fr t2r1 t2r0 t2cm t2i1 t2i0 ca h crcl 00 h .7 .6 .5 .4 .3 .2 .1 .0 cb h crch 00 h .7 .6 .5 .4 .3 .2 .1 .0 cc h tl2 00 h .7 .6 .5 .4 .3 .2 .1 .0 cd h th2 00 h .7 .6 .5 .4 .3 .2 .1 .0 d0 h 2) psw 00 h cy ac f0 rs1 rs0 ov f1 p table 3 contents of the sfrs, sfrs in numeric order of their addresses (contd) addr. register content after reset 1) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
c508 data sheet 24 2000-08 d2 h cp2l 00 h .7 .6 .5 .4 .3 .2 .1 .0 d3 h cp2h xxxx. xx00 b CCCCCC.1.0 d4 h cmp2l 00 h .7 .6 .5 .4 .3 .2 .1 .0 d5 h cmp2h xxxx. xx00 b CCCCCC.1.0 d6 h ccie 00 h ectp ectc cc2 fen cc2 ren cc1 fen cc1 ren cc0 fen cc0 ren d7 h bcon 00 h bcmp bcem pwm1 pwm0 ebce bcerr bcen bcm1 bcm0 d8 h 2) adcon0 00x0- 0000 b bd clk C bsy adm mx2 mx1 mx0 d9 h addath 00 h .9 .8 .7 .6 .5 .4 .3 .2 da h addatl 00xx- xxxx b .1.0CCCCCC db h p4 C .7.6.5.4.3.2.1.0 dc h adcon1 01xx- x000 b adcl1 adcl0 C C C mx2 mx1 mx0 de h ccpl 00 h .7 .6 .5 .4 .3 .2 .1 .0 df h ccph 00 h .7 .6 .5 .4 .3 .2 .1 .0 e0 h 2) acc 00 h .7 .6 .5 .4 .3 .2 .1 .0 e1 h ct1con 0001- 0000 b ctm etrp ste1 ct1 res ct1r clk2 clk1 clk0 e2 h coini ff h cout 3i cout xi cout 2i cc2i cout 1i cc1i cout 0i cc0i e3 h cmsel0 00 h cmsel 13 cmsel 12 cmsel 11 cmsel 10 cmsel 03 cmsel 02 cmsel 01 cmsel 00 e4 h cmsel1 00 h esmc nmcs 0 0 cmsel 23 cmsel 22 cmsel 21 cmsel 20 e5 h ccir 00 h ct1fp ct1fc cc2f cc2r cc1f cc1r cc0f cc0r e6 h ct1ofl 00 h .7 .6 .5 .4 .3 .2 .1 .0 e7 h ct1ofh 00 h .7 .6 .5 .4 .3 .2 .1 .0 f0 h 2) b 00 h .7 .6 .5 .4 .3 .2 .1 .0 table 3 contents of the sfrs, sfrs in numeric order of their addresses (contd) addr. register content after reset 1) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
c508 data sheet 25 2000-08 parallel i/o the c508 has one 8-bit analog or digital input port and five 8-bit i/o ports. port 4 is a uni- directional input port. port 0 is an open-drain bi-directional i/o port, while ports 1, 2, 3 and 5 are quasi-bi-directional i/o ports with internal pullup transistors. that means, when configured as inputs, these ports will be pulled high and will source current when externally pulled low. port 0 will float when configured as input. the output drivers of ports 0 and 2 and the input buffers of port 0 are also used for accessing external memory. in this application, port 0 outputs the low byte of the external memory address, time multiplexed with the byte being written or read. port 2 f1 h ct2con 0001- 0000 b ct2p ect2o ste2 ct2 res ct2r clk2 clk1 clk0 f2 h ccl0 00 h .7 .6 .5 .4 .3 .2 .1 .0 f3 h cch0 00 h .7 .6 .5 .4 .3 .2 .1 .0 f4 h ccl1 00 h .7 .6 .5 .4 .3 .2 .1 .0 f5 h cch1 00 h .7 .6 .5 .4 .3 .2 .1 .0 f6 h ccl2 00 h .7 .6 .5 .4 .3 .2 .1 .0 f7 h cch2 00 h .7 .6 .5 .4 .3 .2 .1 .0 f8 h 2) p5 ff h .7 .6 .5 .4 .3 .2 .1 .0 f9 h cotrap 00 h bct sel pdten cout 2t cc2t cout 1t cc1t cout 0t cc0t fb h eint xx00- 0000 b C C iex9 i9fr iex8 i8fr iex7 i7fr fc h 3)4) vr0 c5 h 11000101 fd h 3)4) vr1 08 h 00001000 fe h 3)4) vr2 5) .7 .6 .5 .4 .3 .2 .1 .0 ff h trcon 00 h trpen trf tren5 tren4 tren3 tren2 tren1 tren0 1) x means that the value is undefined and the location is reserved. 2) bit-addressable special function registers 3) sfr is located in the mapped sfr area. for accessing this sfr, bit rmap in sfr syscon must be set. 4) these are read-only registers. 5) the content of this sfr varies with the actual step of the c508 (e.g. 01 h for c508-4e, first step and 11 h for c508-4r, first step). table 3 contents of the sfrs, sfrs in numeric order of their addresses (contd) addr. register content after reset 1) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
c508 data sheet 26 2000-08 outputs the high byte of the external memory address when the address is 16 bits wide. otherwise, the port 2 pins continue emitting the p2 sfr contents. in this function, port 0 is not an open-drain port, but uses a strong internal pullup fet. port 4 provides the analog input channels to the a/d converter. port structures the c508 generally allows digital i/o on 32 lines grouped into 4 bi-directional 8-bit ports and analog/digital input on one uni-directional 8-bit port. except for port 4 which is the uni-directional input port, each port bit consists of a latch, an output driver and an input buffer. read and write accesses to the i/o ports p0-p5 (except p4) are performed via their corresponding special function registers. when port 4 is used as analog input, an analog channel is switched to the a/d converter through a 3-bit multiplexer, which is controlled by three bits in sfr adcon. port 4 lines may also be used as digital inputs. in this case they are addressed as an input port via sfr p4. since port 4 has no internal latch, the contents of sfr p4 only depends on the levels applied to the input lines. it makes no sense to output a value to these input-only port by writing to the sfr p4. this will have no effect. the parallel i/o ports of the c508 can be grouped into four different types which are listed in table 4 . type a and b port pins are standard c501 compatible i/o port lines, which can be used for digital i/o. type a port (port 0) is also designed for accessing external data or program memory. type b port lines are located at port 2, port 3 and port 5 to provide alternate functions for the serial interface, led drive interface, pwm signals, or are used as control outputs during external data memory accesses. type c port (port 4) provides the analog input port. type d port lines can be switched to push-pull drive capability when they are used as compare outputs of the capcom unit. table 4 c508 port structure types type description a standard digital i/o ports which can also be used for external address/data bus. b standard multifunctional digital i/o port lines. c digital/analog uni-directional input port. d standard digital i/o with push-pull drive capability.
c508 data sheet 27 2000-08 timer/counter 0 and 1 timer/counter 0 and 1 can be used in four operating modes as listed in table 5 . in the timer function (c/t = 0) the register is incremented every machine cycle. therefore the count rate is f osc /3. figure 10 timer/counter 0 and 1 input clock logic in the counter function, the register is incremented in response to a 1-to-0 transition at its corresponding external input pin (p3.4/t0, p3.5/t1). since it takes two machine cycles to detect a falling edge the max. count rate is f osc /6. external inputs int0 and int1 (p3.2, p3.3) can be programmed to function as a gate to facilitate pulse width measurements. figure 10 illustrates the input clock logic. table 5 timer/counter 0 and 1 operating modes mode description tmod input clock m1 m0 internal 0 8-bit timer/counter with a divide-by-32 prescaler 0 0 f osc /3 2 1 16-bit timer/counter 1 0 f osc /3 2 8-bit timer/counter with 8 bit auto-reload 1 1 3 timer/counter 0 used as one 8-bit timer/counter and one 8-bit timer timer 1 stops 01 mct04100 osc 3 =1 1 & p3.4/t0 p3.5/t1 p3.2/int0 p3.3/int1 control 1 0 gate tmod tr0/1 tcon c/t tmod timer 0/1 input clock pin pin
c508 data sheet 28 2000-08 timer/counter 2 with additional compare/capture/reload timer 2 with additional compare/capture/reload features is one of the most powerful peripheral units of the c508. it can be used for all kinds of digital signal generation and event capturing like pulse generation, pulse width modulation, pulse width measuring etc. timer 2 is designed to support various automotive control applications as well as industrial applications (frequency generation, digital-to-analog conversion, process control etc.). the c508 timer 2 in combination with the compare/capture/reload registers allows the following operating modes: C compare: up to 4 pwm output signals with 65535 steps at maximum, and 300 ns resolution C capture: up to 4 high speed capture inputs with 300 ns resolution C reload: modulation of timer 2 cycle time the block diagram in figure 11 shows the general configuration of timer 2 with the additional compare/capture/reload registers. the i/o pins which can be used for timer 2 control are located as multifunctional port functions at port 5. figure 11 timer 2 block diagram mcb04054 16-bit comparator t2ccl3/ t2cch3 input/ output control p5.0/ t2cc0/ int3 16-bit comparator t2ccl2/ t2cch2 16-bit comparator t2ccl1/ t2cch1 16-bit comparator crcl/ crch capture timer 2 tl2 th2 compare tf2 reload interrupt request reload 3 6 osc t2i0 = '1' and t2i1 = '0' t2ps p5.1/ t2cc1/ int4 p5.2/ t2cc2/ int5 p5.3/ t2cc3/ int6
c508 data sheet 29 2000-08 timer 2 operation timer 2, which is a 16-bit-wide register, operates as a timer with its count rate derived from the oscillator frequency. a prescaler offers the possibility of selecting a count rate of 1/3 or 1/6 of the oscillator frequency. thus, the 16-bit timer register (consisting of th2 and tl2) is either incremented in every machine cycle or in every second machine cycle. compare function of the timer 2 the compare function of a timer/register combination can be described as follows. the 16-bit value stored in a compare/capture register is compared with the contents of the timer register. if the count value in the timer register matches the stored value, an appropriate output signal is generated at a corresponding port pin, and an interrupt is requested. the contents of a compare register can be regarded as time stamp at which a dedicated output reacts in a predefined way (either with a positive or negative transition). variation of this time stamp somehow changes the wave of a rectangular output signal at a port pin. as a variation of the duty cycle of a periodic signal, this may be used for pulse width modulation as well as for a continually controlled generation of any kind of square waveforms. two compare modes are implemented to cover a wide range of possible applications. compare mode 0 in mode 0, upon matching the timer and compare register contents, the output signal changes from low to high. it goes back to a low level on timer overflow. as long as compare mode 0 is enabled, the appropriate output pin is controlled by the timer circuit only, and not by the user. writing to the port will have no effect. figure 12 shows a functional diagram of a port latch in compare mode 0. the port latch is directly controlled by the two signals timer overflow and compare. the input line from the internal bus and the write-to-latch line are disconnected when compare mode 0 is enabled. compare mode 0 is ideal for generating pulse width modulated output signals, which in turn can be used for digital-to-analog conversion via a filter network or by the controlled device itself (e.g. the inductance of a dc or ac motor). mode 0 may also be used for providing output clocks with initially defined period and duty cycle. this is the mode which needs the least cpu time. once set up, the output goes on oscillating without any cpu intervention.
c508 data sheet 30 2000-08 figure 12 port latch in compare mode 0 compare mode 1 in compare mode 1, the software adaptively determines the transition of the output signal. it is commonly used when output signals are not related to a constant signal period (as in a standard pwm generation) but must be controlled very precisely with high resolution and without jitter. in compare mode 1, both transitions of a signal can be controlled. compare outputs in this mode can be regarded as high speed outputs which are independent of the cpu activity. figure 13 shows functional diagrams of the timer/compare port latch configuration in compare mode 1. note that the double latch structure is transparent as long as the internal compare signal is active. while the compare signal is active, a write operation to the port will then change both latches. this may become important when driving timer 2 with a slow external clock. in this case the compare signal could be active for many machine cycles in which the cpu could unintentionally change the contents of the port latch. a read-modify-write instruction will read the user-controlled shadow latch and write the modified value back to this shadow-latch. a standard read instruction will - as usual - read the pin of the corresponding compare output. mcs04056 port latch s r d clk q q v dd port pin internal bus write to latch read latch read pin port circuit compare register circuit compare reg. timer circuit timer register comparator 16-bit 16-bit compare match timer overflow
c508 data sheet 31 2000-08 figure 13 port latch in compare mode 1 capture function two different modes are provided for this function. in mode 0, an external event latches the timer 2 contents to a dedicated capture register. in mode 1, a capture will occur upon writing to the low order byte of the dedicated 16-bit capture register. this mode is provided to allow the software to read the timer 2 contents on-the-fly. mcs04060 port latch d clk q q v dd port pin internal bus write to latch read latch read pin compare register circuit compare reg. timer circuit timer register comparator 16-bit 16-bit compare match shadow latch d clk q port circuit
c508 data sheet 32 2000-08 capture/compare unit (ccu) the capture/compare unit (ccu) of the c508 has been designed for applications which demand for digital signal generation and/or event capturing (e.g. pulse width modulation, pulse width measuring). it consists of a 16-bit three-channel capture/compare unit (capcom) and a 10-bit one-channel compare unit (comp). in compare mode, the capcom unit provides two output signals per channel, which can have inverted signal polarity and non-overlapping pulse transitions. the comp unit can generate a single pwm output signal and is further used to modulate the capcom output signals. for motor control applications, both units (capcom and comp) may generate versatile multichannel pwm signals. for brushless dc motors, dedicated control modes are supported which are either controlled by software or by hardware (hall sensors).
c508 data sheet 33 2000-08 figure 14 block diagram of the capture/compare unit ccu general capture/compare unit operation the compare timers 1 and 2 are free running, processor clock coupled 16-bit/10-bit timers; each of which has a count rate with a maximum of 2 f osc up to f osc /64. the compare timer operations with its possible compare output signal waveforms are shown in figure 15 . control cc channel 0 (cch0, ccl0) cc channel 1 (cch1, ccl1) cc channel 2 (cch2, ccl2) mcb04064 prescaler offset register (ct1ofh,ct1ofl) compare timer 1 (16-bit) period register (ccph, ccpl) mode select register (cmsel0, cmsel1) trap/initialization registers (coini, cotrap, tren) port control logic cntrl. register (ct1con) 16-bit capture/compare unit (capcom) cc0 cout0 cc1 cout1 cc2 cout2 2 f osc compare reg. (cmp2h, cmp2l) prescaler compare timer 2 (10-bit) period register (cp2h, cp2l) cntrl. register (ct2con) 10-bit compare unit (comp) 2 f osc block commutation control (bcon) int0 int1 int2 cout3 ctrap
c508 data sheet 34 2000-08 figure 15 basic operating modes of the capcom unit the compare timer can be operated in both up count in mode 0 and up and down count in mode 1 for edge and center aligned pwm waveforms respectively with a programmable dead time dead time ( t off ) between ccx and coutx. mcd04065 0000 h ccx coutx compare value period value a) standard pwm (edge aligned) offset { ccx coutx compare value period value standard pwm (single edge aligned) with programmable dead time ( t off ) compare timer 1 operating mode 0 0000 h ccx coini=0 coutx coini=1 compare value period value c) symmetrical pwm (center aligned) compare timer 1 operating mode 1 ccx coini=0 coutx coini=1 compare value period value b) symmetrical pwm (center aligned) with programmable dead time ( t off ) d) offset { t off t off : interrupt can be generated t off
c508 data sheet 35 2000-08 further, the initial logic output level of the capcom channel outputs can be selected in compare mode. this allows waveforms to be generated with inverting signal polarities. the compare unit comp is a 10-bit compare unit which can be used to generate a pulse width modulated signal. this pwm output signal drives the output pin cout3. in burst mode and in the pwm modes the output of the comp unit can be switched to the coutx outputs. the block commutation control logic allows to generate versatile multi-channel pwm output signals. in one of these modes, the block commutation mode, signal transitions at the three external interrupt inputs are used to trigger the pwm signal generation logic. depending on these signal transitions, the six i/o lines of the capcom unit, which are decoupled in block commutation mode from the three capture/compare channels, are driven as static or pwm modulated outputs. capcom channel 0 can be used in block commutation mode for a capture operation (speed measurement) which is triggered by each transition at the external interrupt inputs. further, the multi-channel pwm mode signal generation can be also triggered by the period of compare timer 1. these operating modes are referenced as multi-channel pwm modes. using the ctrap input signal of the c508, the compare outputs can be put immediately into their state as defined in cotrap register. the ccu unit has four main interrupt sources with their specific interrupt vectors. interrupts can be generated at the compare timer 1 period match or count-change events, at the compare timer 2 period match event, at a capcom compare match or capture event, and at a capcom emergency event. an emergency event occurs if an active ctrap signal is detected or if an error condition in block commutation mode is detected. all interrupt sources can be enabled/disabled individually. table 6 resolution and period of the compare timer 1 (at f osc = 10 mhz) compare timer 1 input clock operating mode 0 operating mode 1 resolution period resolution period 2 f osc f osc f osc / 2 f osc / 4 f osc / 8 f osc / 16 f osc / 32 f osc / 64 50 ns 100 ns 200 ns 400 ns 800 ns 1.6 m s 3.2 m s 6.4 m s 100 ns - 3.28 ms 200 ns - 6.55 ms 400 ns - 13.11 ms 800 ns - 26.21 ms 1.6 m s - 52.43 ms 3.2 m s - 104.86 ms 6.4 m s - 209.72 ms 12.8 m s - 419.43 ms 50 ns 100 ns 200 ns 400 ns 800 ns 1.6 m s 3.2 m s 6.4 m s 200 ns - 6.55 ms 400 ns - 13.11 ms 800 ns - 26.21 ms 1.6 m s - 52.43 ms 3.2 m s - 104.86 ms 6.4 m s - 209.71 ms 12.8 m s - 419.42 ms 25.6 m s - 838.85 ms
c508 data sheet 36 2000-08 compare (comp) unit operation the capture/compare unit ccu of the c508 also provides a 10-bit compare unit (comp) which operates as a single channel pulse generator with a pulse width modulated output signal. this output signal is available at the output pin cout3 of the c508. in the combined multi-channel pwm modes and in burst mode of the capcom unit the output signal of the comp unit can also be switched to the output signals coutx or ccx. figure 16 shows the block diagram and the pulse generation scheme of the comp unit. figure 16 comp unit: block diagram and pulse generation scheme the comp unit has a 10-bit up-counter (compare timer 2, ct2) which starts counting from 000 h up to the value stored in the period register and then is again reset. this compare timer 2 operation is equal to the operating mode 0 of compare timer 1. when the count value of ct2 matches the value stored in the compare registers cmp2h/ cmp2l, cout3 toggles its logic state. when compare timer 2 is reset to 000 h , cout3 toggles again its logic state. in the combined multi-channel pwm modes and in the burst mode, the compare timer 2 output signal can also be switched to the capcom output pins cout0, cout1, and cout3. in these modes, the polarity of the modulated output signal at cout2-0 can be inverted by setting bit coutxi (coini.6) combined multi-channel pwm modes the ccu of the c508 has been designed to support also motor control or inverter applications which have a demand for specific multi-channel pwm signal generation. in these combined multi-channel pwm modes the capcom unit (compare timer 1) and the comp unit (compare timer 2) of the c508 ccu are working together. mcb04101 programmable prescaler period registers cp2h/cp2l compare timer 2 10-bit up counter control register ct2con comparator compare registers cmp2h/cmp2l pulse generation match port pin cout3 coutxi (coini.6) cout3i (coini.7) 2 f osc ect20 to capcom output control
c508 data sheet 37 2000-08 in the combined multi-channel pwm modes the signal generation of the ccx and coutx pwm outputs can basically be controlled either by the interrupt inputs int0 to int2 (block commutation mode) or by the operation of compare timer 1 or by software (multi-channel pwm mode). figure 17 shows the block diagram of the multi-channel pwm mode logic which is integrated in the c508. figure 17 block diagram of the combined multi-channel pwm modes in the c508 at the multi-channel pwm modes of the c508, a change of the pwm output states (active or inactive) is triggered by compare timer 1, which is running either in operating mode 0 or 1. if its count value reaches 0000 h , the pwm output signal changes its state according to a well defined state table. the multi-channel pwm modes are split up into three modes: C 4-phase multi-channel pwm mode (4 pwm output signals) C 5-phase multi-channel pwm mode (5 pwm output signals) C 6-phase multi-channel pwm mode (6 pwm output signals) mcb04070 port 1 control logic cc0 cc1 cc2 cout0 cout1 cout3 trap control ctrap combined multi-channel pwm control (bcon) int0 int1 int2 ccu emergency interrupt 16-bit compare timer 1 channel 0 capture mode 10-bit compare timer 2 phase delay timer pwm cout2 period/ comp.match interrupt capture interrupt
c508 data sheet 38 2000-08 block commutation pwm mode in block commutation mode the int0-2 inputs are sampled once each processor cycle. if the input signal combination at int0-2 changes its state, the outputs ccx and coutx are set to their new state according to table 7 . table 7 black commutation control table mode (bcm1,bcm0) int0 - int2 inputs cc0 - cc2 outputs cout0 - cout2 outputs int0 int1 int2 cc0 cc1 cc2 cout0 cout1 cout2 rotate left 1) rotate right 1) 1) if one of these two combinations of intx signals is detected in rotate left or rotate right mode, bit bcerr flag is set. if enabled, a ccu emergency interrupt can be generated. when these states (error states) are reached, immediately idle state is entered. 0 0 0 inactive inactive inactive inactive inactive inactive 1 1 1 inactive inactive inactive inactive inactive inactive rotate left, 60 phase shift (bctsel = 0, default) 1 0 1 inactive inactive active active inactive inactive 1 0 0 inactive active inactive active inactive inactive 1 1 0 inactive active inactive inactive inactive active 0 1 0 active inactive inactive inactive inactive active 0 1 1 active inactive inactive inactive active inactive 0 0 1 inactive inactive active inactive active inactive rotate left, 0 phase shift (bctsel = 1) 1 0 1 inactive inactive active inactive active inactive 1 0 0 inactive inactive active active inactive inactive 1 1 0 inactive active inactive active inactive inactive 0 1 0 inactive active inactive inactive inactive active 0 1 1 active inactive inactive inactive inactive active 0 0 1 active inactive inactive inactive active inactive rotate right 1 1 0 active inactive inactive inactive active inactive 1 0 0 active inactive inactive inactive inactive active 1 0 1 inactive active inactive inactive inactive active 0 0 1 inactive active inactive active inactive inactive 0 1 1 inactive inactive active active inactive inactive 0 1 0 inactive inactive active inactive active inactive slow down x x x inactive inactive inactive active active active idle 2) 2) idle state is also entered when a wrong follower is detected (if bit bcon.7 = bcem is set). when idle state is entered, the bcerr flag is always set. idle state can only be left when the bcerr flag is reset by software. x x x inactive inactive inactive inactive inactive inactive
c508 data sheet 39 2000-08 serial interface the serial port of the c508 is full duplex, meaning it can transmit and receive simultaneously. it is also receive-buffered, meaning it can commence reception of a second byte before a previously received byte has been read from the receive register (however, if the first byte still hasnt been read by the time reception of the second byte is complete, one of the bytes will be lost). the serial port receive and transmit registers are both accessed at special function register sbuf. writing to sbuf loads the transmit register, and reading sbuf accesses a physically separate receive register. the four modes of usart is illustrated in table 8 . table 8 usart operating modes sm0 sm1 selected operating mode 0 0 serial mode 0: shift register, fixed baud rate ( f osc /3) serial data enters and exits through rxd; txd outputs the shift clock 0 1 serial mode 1: 8-bit usart, variable baud rate 10 bits are transmitted (through txd) or received (at rxd) 1 0 serial mode 2: 9-bit usart, fixed baud rate ( f osc /8 or f osc /16) 11 bits are transmitted (through txd) or received (at rxd) 1 1 serial mode 3: 9-bit usart, variable baud rate 11 bits are transmitted (through txd) or received (at rxd)
c508 data sheet 40 2000-08 baud rate generation there are several possibilities to generate the baud rate clock for the serial port depending on the mode in which it is operating. figure 18 baud rate generation for the serial port for clarification, some terms regarding the difference between baud rate clock and baud rate should be mentioned. the serial interface requires a clock rate which is 16 times the baud rate for internal synchronization. therefore, the baud rate generators must provide a baud rate clock to the serial interface which - there divided by 16 - results in the actual baud rate. however, all formulas given in the following section already include the factor and calculate the final baud rate. further, the abbreviation f osc refers to the external clock frequency (oscillator or external input clock operation). depending on the programmed operating mode different paths are selected for the baud rate clock generation. figure 18 shows the dependencies of the serial port baud rate clock generation on the two control bits and from the mode which is selected in the special function register scon. mcs04074 scon.7/ scon.6 (sm0/sm1) mode 1 mode 3 mode 2 mode 0 2 f osc timer 1 overflow only one mode can be selected pcon.7 (smod) ? 2 baudrate clock 0 1 note: the switch configuration shows the reset state adcon0.7 (bd) 0 1 baudrate generator (srelh srell) ? 6
c508 data sheet 41 2000-08 table 9 below lists the values/formulas for the baud rate calculations of the serial interface with its dependencies of the control bits bd and smod. table 9 serial interface - baud rate dependencies serial interface operating modes active control bits baud rate calculation bd smod mode 0 (shift register) CC f osc / 3 mode 1 (8-bit uart) mode 3 (9-bit uart) 0 x controlled by timer 1 overflow: (2 smod timer 1 overflow rate) / 32 1 x controlled by baud rate generator (2 smod f osc ) / (16 baud rate generator overflow rate) mode 2 (9-bit uart) C 0 f osc / 16 1 f osc / 8
c508 data sheet 42 2000-08 10-bit a/d converter the c508 provides an a/d converter with the following features: ? 8 input channels (port 4) which can also be used as digital inputs ? 10-bit resolution ? single or continuous conversion mode ? interrupt request generation after each conversion ? using successive approximation conversion technique via a capacitor array ? built-in hidden calibration of offset and linearity errors a/d converter clock selection the adc uses two clock signals for operation: the conversion clock f adc (= 1/ t adc ) and the input clock f in (= 1/ t in ). f adc is derived from the c508 system clock 2 f osc which is twice the crystal frequency applied at the xtal pins via the adc clock prescaler as shown in figure 19 . the input clock f in is equal to 2 f osc. the conversion clock f adc is limited to a maximum frequency of 2 mhz. therefore, the adc clock prescaler must be programmed to a value which assures that the conversion clock does not exceed 2 mhz. the prescaler ratio is selected by the bits adcl1 and adcl0 of sfr adcon1. . figure 19 a/d converter clock selection mux 4 8 16 32 conversion clock f adc a/d converter 2 f osc adcl0 adcl1 f adc max = 2 mhz condition: f in = 2 f osc = 4 tcl 1) f adc [mhz] mcb04102 oscillator clock rate ( f osc ) f in [mhz] prescaller ratio 5 mhz 8 mhz 10 mhz 10 adcl1 adcl0 16 20 8 8 16 1.25 2 1.25 0 0 1 1 1 0 input clock f in 1) note: please refer to ac characteristics in this document for the definition of tcl.
c508 data sheet 43 2000-08 figure 20 block diagram of the a/d converter mcb04076 - ien1 (b8 h ) ircon (c0 h ) p4 (db h ) adcon1 (dc h ) adcon0 (d8 h ) - p4.7 adcl1 bd swdt ex6 ex5 ex4 ex3 ex2 eadc tf2 iex6 iex5 iex4 iex3 iex2 iadc p4.6 p4.5 p4.4 p4.3 p4.2 p4.1 p4.0 adcl0 - - - mx2 mx1 mx0 clk - bsy adm mx2 mx1 mx0 .2 .3 .4 .5 .6 .7 .8 mcb a/d converter addath (d9 h ) addatl (da h ) s&h mux clock prescaler 32, 16, 8, 4 2 f osc - - - - - - lsb .1 internal bus internal bus conversion clock f adc input clock f in v aref v agnd start of conversion write to addatl single/ continuous mode port 4 shaded bit locations are not used in adc-functions.
c508 data sheet 44 2000-08 interrupt system the c508 provides nineteen interrupt vectors with four priority levels. nine interrupt requests are generated by the on-chip peripherals (timer 0, timer 1, timer 2, serial channel, a/d converter, and the capture/compare unit with four interrupts) and ten interrupts may be triggered externally. four of the external interrupts (int3 , int4, int5 and int6) can also be generated by the timer 2 in capture/compare mode. the wake-up from power-down mode interrupt has a special functionality which allows the software power-down mode to be terminated by a short negative pulse at either pin p3.2/int0 or pin p5.7/int7. the nineteen interrupt sources are divided into six groups. each group can be programmed to one of the four interrupt priority levels.
c508 data sheet 45 2000-08 figure 21 interrupt structure, overview part 1 mcs04081 ex2 ien1.1 iex2 ircon.1 i2fr t2con.5 p5.4/ int2 0043 h 0003 h highest priority level polling sequence ea ien0.7 ip1.1 ip0.1 000b h 004b h bit addressable request flag is cleared by hardware ex0 ien0.0 ie0 tcon.1 it0 tcon.0 p3.2/ int0 eadc ien1.0 iadc ircon.0 a/d converter ip1.0 ip0.0 et0 ien0.1 tf0 tcon.5 timer 0 overflow lowest priority level
c508 data sheet 46 2000-08 figure 22 interrupt structure, overview part 2 mcs04082 p5.0/ t2cc0/ int3 ex7 iex7 eint.1 i7fr eint.0 p5.7/ int7 0093 h 0013 h highest priority level lowest priority level ea ien0.7 ip1.2 ip0.2 0053 h 00d3 h bit addressable request flag is cleared by hardware ex3 ien1.2 ien3.2 iex3 ircon.2 i3fr t2con.6 3 1 ecem ien2.2 etrp ct1con.6 ebce bcon.4 trf trcon.6 bcerr bcon.3 ccu emergency interrupt ex1 ien0.2 ie1 tcon.3 it1 tcon.2 p3.3/ int1 polling sequence
c508 data sheet 47 2000-08 figure 23 interrupt structure, overview part 3 mcs04083 ex8 iex8 eint.3 i8fr eint.2 p5.6/ int8 009b h 001b h highest priority level lowest priority level ea ien0.7 ip1.3 ip0.3 005b h 00db h bit addressable request flag is cleared by hardware et1 ien0.3 tf1 tcon.7 timer 1 overflow ect2 ien2.3 ct2p ct2con.7 compare timer 2 interrupt p5.1/ t2cc1/ int4 ex4 ien1.3 ien3.3 iex4 ircon.3 polling sequence
c508 data sheet 48 2000-08 figure 24 interrupt structure, overview part 4 mcs04084 3 1 es ien0.4 es scon.1 scon.0 usart cc0ren ccie0.0 cc0r ccir.0 cc0fen ccie0.1 cc0f ccir.1 p1.2/ cc0 cc1ren ccie0.2 cc1r ccir.2 cc1fen ccie0.3 cc1f ccir.3 p1.4/ cc1 cc2ren ccie0.4 cc2r ccir.4 cc2fen ccie0.5 cc2f ccir.5 p1.6/ cc2 3 1 eccm ien2.4 capture/compare match interrupt ex5 ien1.4 ien3.4 iex5 ircon.4 p5.2/ t2cc2/ int5 ex9 iex9 eint.5 i9fr eint.4 p5.5/ int9 00a3 h 0023 h highest priority level lowest priority level ea ien0.7 ip1.4 ip0.4 0063 h 00e3 h bit addressable request flag is cleared by hardware ri polling sequence
c508 data sheet 49 2000-08 figure 25 interrupt structure, overview part 5 mcs04085 p5.3/ t2cc3/ int6 00ab h 002b h highest priority level lowest priority level polling sequence ea ien0.7 ip1.5 ip0.5 006b h bit addressable request flag is cleared by hardware ex6 ien1.5 iex6 ircon.5 3 1 ect1 ien2.5 ectp ccie.7 ectc ccie.6 ct1fp ccir.7 ct1fc ccir.6 compare timer 1 interrupt et2 ien0.5 tf2 ircon.6 timer 2 overflow
c508 data sheet 50 2000-08 table 10 interrupt source and vectors interrupt source interrupt vector address interrupt request flags external interrupt 0 0003 h ie0 timer 0 overflow 000b h tf0 external interrupt 1 0013 h ie1 timer 1 overflow 001b h tf1 serial channel 0023 h ri / ti timer 2 overflow 002b h tf2 a/d converter 0043 h iadc external interrupt 2 004b h iex2 external interrupt 3 0053 h iex3 external interrupt 4 005b h iex4 external interrupt 5 0063 h iex5 external interrupt 6 006b h iex6 capcom emergency interrupt 0093 h trf/bcerr compare timer 2 interrupt 009b h ct2p capture/compare match interrupt 00a3 h ccxf / ccxf, x = 0 to 2 compare timer 1 interrupt 00ab h ct1fp / ct1fc external interrupt 7 00d3 h iex7 external interrupt 8 00db h iex8 external interrupt 9 00e3 h iex9 wake-up from power-down mode 007b h C
c508 data sheet 51 2000-08 fail save mechanisms the c508 offers enhanced fail save mechanisms, which allow an automatic recovery from software or hardware failure: C a programmable watchdog timer (wdt), with variable time-out period from 153.6 m s to 314.573 ms at f osc = 10 mhz. C an oscillator watchdog (owd) which monitors the on-chip oscillator and forces the microcontroller into reset state in case the on-chip oscillator fails; it also provides the clock for a fast internal reset after power-on. programmable watchdog timer to protect the system against software failure, the users program must clear this watchdog within a previously programmed time period. if the software fails to do this periodical refresh of the watchdog timer, an internal reset will be initiated. the software can be designed so that the watchdog times out if the program does not work properly. it also times out if a software error is based on hardware-related problems. the watchdog timer in the c508 is a 15-bit timer, which is incremented by a count rate of f osc /6 upto f osc /96. the machine clock of the c508 is divided by two prescalers, a divide-by-two and a divide-by-16 prescaler. to program the watchdog timer overflow rate, the upper 7 bits of the watchdog timer can be written. figure 26 shows the block diagram of the watchdog timer unit. figure 26 block diagram of the programmable watchdog timer mcs04087 f osc /3 wdtl 07 wdth 14 8 70 6 wdtrel (86 h ) 16 2 owds wdts - - - - - - - wdt - - - - - - - swdt - - - - - - control logic wdtpsel ip0 (a9 h ) wdt reset-request external hw reset ien0 (a8 h ) ien1 (b8 h )
c508 data sheet 52 2000-08 the watchdog timer can be started by software (bit swdt in sfr ien1), but it cannot be stopped during active mode of the device. if the software fails to clear the watchdog timer an internal reset will be initiated. the cause of the reset (either an external reset or a reset caused by the watchdog) can be examined by software (status flag wdts in ip0 is set). a refresh of the watchdog timer is done by setting bits wdt (sfr ien0) and swdt consecutively. this double instruction sequence has been implemented to increase system security. it must be noted, however, that the watchdog timer is halted during the idle mode and power-down mode of the processor. oscillator watchdog unit the oscillator watchdog unit serves for three functions: ? monitoring of the on-chip oscillators function the watchdog supervises the on-chip oscillators frequency; if it is lower than the frequency of the auxiliary rc oscillator in the watchdog unit, the internal clock is supplied by the rc oscillator and the device is brought into reset. if the failure condition disappears (i.e. the on-chip oscillator has a higher frequency than the rc oscillator), the part executes a final reset phase of typically 1 ms in order to allow the oscillator to stabilize; then, the oscillator watchdog reset is released and the part starts program execution again. ? fast internal reset after power-on the oscillator watchdog unit provides a clock supply for the reset before the on-chip oscillator and the pll have started. ? control of external wake-up from software power-down mode when the software power-down mode is terminated by a low level at pins p3.2/int0 or p5.7/int7, the oscillator watchdog unit ensures that the microcontroller resumes operation (execution of the power-down wake-up interrupt) with the nominal clock rate. in the power-down mode the rc oscillator, the on-chip oscillator and the pll are stopped. they are started again when power-down mode is terminated. after the on- chip oscillator is stable and the pll has been locked, the microcontroller starts program execution. note: the oscillator watchdog unit is always enabled. table 11 watchdog timer time-out periods wdtrel time-out period comments f osc = 5 mhz f osc = 8 mhz f osc = 10 mhz 00 h 39.322 ms 24.576 ms 19.668 ms this is the default value 80 h 629.146 ms 393.2 ms 314.573 ms maximum time period 7f h 307.2 m s 192 m s153.6 m s minimum time period
c508 data sheet 53 2000-08 figure 27 functional block diagram of the oscillator watchdog fast internal reset after power-on normally the members of the 8051 family (e.g. sab 80c52) do not enter their default reset state before the on-chip oscillator starts. in the c508, after power-on, the oscillator watchdogs rc oscillator starts working within a very short start-up time (typ. less than 2 m s). the watchdog circuitry detects a failure condition for the on-chip oscillator because they have not yet started (a failure is always recognized if the watchdogs rc oscillator runs faster than the gated pll clock output). as long as this condition is valid the watchdog uses the rc oscillator output as the clock source for the chip. this allows the chip to be correctly reset and brings all ports to the defined state. the exception is port 1, which will be at its default state when external reset is active. f 1 mcb04088 frequency comparator 5 control logic on-chip oscillator xtal2 xtal1 control logic p5.7/ int7 p3.2/ int0 ewpd (pcon1.0) ws (pcon1.4) power-down mode activated start/ stop start/ stop f rc f osc f 2 delay f 2 < f 1 3 1 rc oscillator owds ip0 (a9 h ) power-down mode wake-up interrupt internal reset system clock generator system clock (2 x f ocs )
c508 data sheet 54 2000-08 power saving modes the c508 provides two basic power saving modes, the idle mode and the power down mode. additionally, a slow down mode is available. this power saving mode reduces the internal clock rate in normal operating mode and it can also be used for further power reduction in idle mode. ? idle mode in the idle mode, the oscillator of the c508 continues to run, but the cpu is gated off from the clock signal. however, the interrupt system, the serial port, the a/d converter, the capture/compare unit, and all timers (with the exception of the watchdog timer) are further provided with the clock. the cpu status is preserved in its entirety: the stack pointer, program counter, program status word, accumulator, and all other registers maintain their data during idle mode. ? slow down mode in some applications, where power consumption and dissipation are critical, the controller might run for a certain time at reduced speed (for example, if the controller is waiting for an input signal). since in cmos devices, there is an almost linear dependence of the operating frequency and the power supply current, so, a reduction of the operating frequency results in reduced power consumption. ? software power down mode in the software power down mode, the rc oscillator, the on-chip oscillator which operates with the xtal pins and the pll are all stopped. therefore, all functions of the microcontroller are stopped and only the contents of the on-chip ram, xram and the sfr's are maintained. the port pins, which are controlled by their port latches, output the values that are held by their sfr's. the port pins which serve the alternate output functions show the values they had at the end of the last cycle of the instruction which initiated the power down mode. ale and psen are held at logic low level. this power down mode is entered by software and can be left by reset.
c508 data sheet 55 2000-08 state of pins in software initiated power saving modes in the idle mode and power down mode, the port pins of the c508 have well defined states which is listed in the following table 12 . the state of some pins also depends on the location of the code memory (internal or external). in the power down mode of operation, v dd can be reduced to minimize power consumption. it must be ensured, however, that v dd is not reduced before the power down mode is invoked and the v dd is restored to its normal operation level, before the power down mode is terminated. table 13 gives a general overview of the entry and exit procedures of the power saving modes. table 12 status of external pins during idle and software power down mode outputs last instruction executed from internal code memory last instruction executed from external code memory idle power down idle power down ale high low high low psen high low high low port 0 data data float float port 2datadataaddressdata port 1, 3, 4, 5 data / alternate outputs data / last output data / alternate outputs data / last output
c508 data sheet 56 2000-08 table 13 power saving modes overview mode entering 2-instruction example leaving by remarks idle mode orl pcon,#01 h orl pcon,#20 h occurance of any enabled interrupt cpu clock is stopped; cpu maintains its data; peripheral units are active (if enabled) and provided with clock hardware reset slow down mode in normal mode: orl pcon,#10 h anl pcon,#0ef h or hardware reset internal clock rate is reduced to a factor of 1 / 32 of the nominal system clock rate ( 1 / 16 of f osc ) with idle mode: orl pcon,#01 h orl pcon,#30 h occurance of any enabled interrupt to exit idle mode and the instruction anl pcon,#0ef h to terminate slow down mode cpu clock is stopped; cpu maintains all its data; peripheral units are active (if enabled) and provided with 1 / 32 of the nominal system clock rate ( 1 / 16 of f osc ) hardware reset software power down mode with external wake-up capability from power down enabled orl syscon,#10 h orl pcon1,#80 h (to wake-up via pin p3.2/int0 ) or orl pcon1,#90 h (to wake-up via pin p5.7/int7) anl syscon,#0ef h orl pcon,#02 h orl pcon,#40 h hardware reset oscillator is stopped; contents of on-chip ram and sfrs are maintained when p3.2/int0 (or p5.7/ int7) goes low for at least 10 m s (latch phase). but it is desired that the corresponding pin must be held at high level during the power down mode entry and up to the wake-up. with external wake-up capability from power down disabled orl pcon,#02 h orl pcon,#40 h hardware reset
c508 data sheet 57 2000-08 otp memory operation (c508-4e only) the c508-4e is the otp version of the c508 microcontroller with a 32k byte one-time programmable (otp) program memory. fast programming cycles are achieved (1 byte in 100 m s) with the c508-4e. several levels of otp memory protection can be selected as well. to program the device, the c508-4e must be put into the programming mode. typically, this is not done in-system but in a special programming hardware. in the programming mode, the c508-4e operates as a slave device similar to an eprom standalone memory device and must be controlled with address/data information, control lines, and an external 11.5 v programming voltage. figure 28 shows the pins of the c508-4e which are required for controlling of the otp programming mode. figure 28 programming mode configuration mcp04090 c508-4e p0.0 - 7 pale pmsel0 pmsel1 xtal1 xtal2 v dd v ss p2.0 - 7 port 2 port 0 psel psen reset prd prog ea/ v pp
c508 data sheet 58 2000-08 pin configuration in programming mode figure 29 otp programming mode pin configuration for p-mqfp-64-1 package (top view) mcp04091 a5/a13 49 50 51 52 53 54 55 v ss 56 57 d0 58 59 60 61 62 63 64 48 a6/a14 47 a7 46 psen prog 45 44 v dd 43 xtal1 42 41 xtal2 40 n.c. n.c. 39 38 n.c. 37 pale prd 36 35 psel 34 pmsel1 pmsel0 33 32 n.c. 31 30 29 28 27 26 25 24 v ss 23 22 n.c. 21 20 19 18 17 v dd 1 reset ea/ v pp 23 4 56 7 89 10 11 12 13 14 15 16 v dd v ss c508-4e a4/a12 a3/a11 a2/a10 a1/a9 a0/a8 d1 d2 d3 d4 d5 d6 d7 n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c.
c508 data sheet 59 2000-08 figure 30 otp programming mode pin configuration for p-sdip-64-2 package (top view) mcp04092 c508-4e d0 1 d1 2 3 d2 d3 4 5 d4 6 d5 d6 7 8 d7 9 reset ea/ v pp 10 11 n.c. 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 v dd v ss 64 v dd 63 62 a0/a8 61 60 59 58 57 56 55 54 psen 53 prog 52 51 50 xtal1 xtal2 49 48 n.c. 47 46 45 pale 44 prd psel 43 42 pmsel1 41 pmsel0 n.c. 40 39 n.c. 38 37 36 35 34 33 v ss v dd v ss n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c. a1/a9 a2/a10 a3/a11 a4/a12 a5/a13 a6/a14 a7 n.c. n.c. n.c. n.c. n.c. n.c. n.c. n.c.
c508 data sheet 60 2000-08 pin definitions table 14 contains the functional description of all c508-4e pins which are required for otp memory programming. table 14 pin definitions and functions of the c508-4e in programming mode symbol pin number i/o 1) function p-mqfp-64-1 p-sdip-64-2 reset 1 9 i reset this input must be at static 1 (active) level throughout the entire programming mode. pmsel0 pmsel1 33 34 41 42 i i programming mode selection pins these pins are used to select the different access modes in programming mode. pmsel1,0 must satisfy a setup time to the rising edge of pale. when the logic level of pmsel1,0 is changed, pale must be at low level. psel 35 43 i basic programming mode select this input is used for the basic programming mode selection and must be switched according to figure 31 . prd 36 44 i programming mode read strobe this input is used for read access control for otp memory read, version byte read, and lock bit read operations. pale 37 45 i programming address latch enable pale is used to latch the high address lines. the high address lines must satisfy a setup and hold time to/from the falling edge of pale. pale must be at low level when the logic level of pmsel1,0 is changed. xtal2 47 49 o xtal2 output of the inverting oscillator amplifier. pmsel1 pmsel0 access mode 00reserved 0 1 read signature bytes 1 0 program/read lock bits 1 1 program/read otp memory byte
c508 data sheet 61 2000-08 xtal1 48 50 i xtal1 input to the oscillator amplifier. v ss 24, 43, 55 32, 51, 63 C ground (0 v) must be applied in programming mode. v dd 23, 44, 56 31, 52, 64 C power supply (+ 5 v) must be applied in programming mode. p2.7- p2.0 47 - 54 55 - 62 i address lines p2.0-p2.7 are used as multiplexed address input lines a0-a7 and a8-a14. a8-a14 must be latched with pale. psen 46 54 i program store enable this input must be at static 0 level during the whole programming mode. prog 45 53 i programming mode write strobe this input is used in programming mode as a write strobe for otp memory program and lock bit write operations. during basic programming mode selection, a low level must be applied to prog . ea / v pp 210C programming voltage this pin must be at 11.5 v ( v pp ) voltage level during programming of an otp memory byte or lock bit. during an otp memory read operation, this pin must be at v ih2 high level. this pin is also used for basic programming mode selection. for basic programming mode selection a low level must be applied to ea / v pp . p0.7- p0.0 57 - 64 1 - 8 i/o data lines in programming mode, data bytes are transferred via the bi-directional d7-d0 lines which are located at port 0. n.c. 3 - 12, 15 - 22, 25 - 32, 38 - 40 11 - 30, 33 - 40, 46 - 48 C not connected these pins should not be connected in programming mode. 1) i = input o=output table 14 pin definitions and functions of the c508-4e in programming mode (contd) symbol pin number i/o 1) function p-mqfp-64-1 p-sdip-64-2
c508 data sheet 62 2000-08 programming mode selection the selection for the otp programming mode can be separated into two different parts: C basic programming mode selection C access mode selection with basic programming mode selection, the device is put into the mode in which it is possible to access the otp memory through the programming interface logic. further, after selection of the basic programming mode, otp memory accesses are executed by using one of the access modes. these access modes are otp memory byte program/ read, version byte read, and program/read lock byte operations. basic programming mode selection the basic programming mode selection scheme is shown in figure 31 . figure 31 basic programming mode selection mcd04093 v dd 5 v clock (xtal1/ xtal2) reset "1" psen "0" pmsel1,0 prog prd "1" "0" 0,1 psel pale "0" ea/ v pp v pp v ih2 0 v ready for access mode selection during this period signals are not actively driven stable
c508 data sheet 63 2000-08 table 15 access modes selection access mode ea / v pp prog prd pmsel address (port 2) data (port 0) 10 program otp memory byte v pp h h h a0-a7 a8-a14 d0-d7 read otp memory byte v ih2 h program otp lock bits v pp hhl Cd1, d0 see table 16 read otp lock bits v ih2 h read otp version byte v ih2 h l h byte addr. of version byte d0-d7
c508 data sheet 64 2000-08 lock bits programming/read the c508-4e has two programmable lock bits which, when programmed according to table 16 , provide four levels of protection for the on-chip otp code memory. the state of the lock bits can also be read. note: a 1 means that the lock bit is unprogrammed, a 0 means that lock bit is programmed. table 16 lock bit protection types lock bits at d1,d0 protection level protection type d1 d0 1 1 level 0 the otp lock feature is disabled. during normal operation of the c508-4e, the state of the ea pin is not latched on reset. 1 0 level 1 during normal operation of the c508-4e, movc instructions executed from external program memory are disabled from fetching code bytes from internal memory. ea is sampled and latched on reset. an otp memory read operation is only possible according to otp verification mode 2. further programming of the otp memory is disabled (reprogramming security). 0 1 level 2 same as level 1, but also otp memory read operation using otp verification mode is disabled. 0 0 level 3 same as level 2, but additionally external code execution by setting ea = low during normal operation of the c508-4e is no longer possible. external code execution, initiated by an internal program (e.g. by an internal jump instruction above the otp memory boundary), is still possible.
c508 data sheet 65 2000-08 note: stresses above those listed under absolute maximum ratings may cause permanent damage of the device. this is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operational sections of this specification is not implied. exposure to absolute maximum rating conditions for longer periods may affect device reliability. during absolute maximum rating overload conditions ( v in > v dd or v in < v ss ) the voltage on v dd pins with respect to ground ( v ss ) must not exceed the values defined by the absolute maximum ratings. absolute maximum ratings parameter symbol limit values unit notes min. max. storage temperature t st C65 150 cC voltage on v dd pins with respect to ground ( v ss ) v dd C0.5 6.5 v C voltage on any pin with respect to ground ( v ss ) v in C0.5 v dd + 0.5 v C input current on any pin during overload condition C C 10 10 ma C absolute sum of all input currents during overload condition C C |100 ma| ma C power dissipation p diss Ct.b.d.wC operating conditions parameter symbol limit values unit notes min. max. supply voltage v dd 4.5 5.5 v C ground voltage v ss 0vC ambient temperature sab-c508 saf-c508 t a t a 0 C40 70 85 cC analog reference voltage v aref 4 v dd + 0.1 v C analog ground voltage v agnd v ss C 0.1 v ss + 0.2 v C analog input voltage v ain v agnd v aref vC cpu clock f cpu 10 20 mhz C
c508 data sheet 66 2000-08 parameter interpretation the parameters listed in the following partly represent the characteristics of the c508 and partly its demands on the system. to aid in interpreting the parameters right, when evaluating them for a design, they are marked in column symbol: cc ( c ontroller c haracteristics) the logic of the c508 will provide signals with the respective characteristics. sr ( s ystem r equirements) the external system must provide signals with the respective characteristics to the c508. dc characteristics (operating conditions apply) parameter symbol limit values unit test condition min. max. input low voltage (except ea , reset) v il sr C 0.5 0.2 v dd C 0.1 vC input low voltage (ea ) v il1 sr C 0.5 0.2 v dd C 0.3 vC input low voltage (reset) v il2 sr C 0.5 0.2 v dd + 0.1 vC input high voltage (except reset, ea , xtal1) v ih sr 0.2 v dd + 0.9 v dd + 0.5 v C input high voltage to reset v ih1 sr 0.6 v dd v dd + 0.5 v C input high voltage to ea v ih2 sr 0.7 v dd v dd + 0.5 v 1) 0.2 v dd + 0.9 v dd + 0.5 v 2) input high voltage to xtal1 v ih3 sr 0.7 v dd v dd + 0.5 v C output low voltage (ports 3, 5) (ports 1, 2) v ol cc C C 0.45 0.45 v v i ol = 1.6 ma 3) i ol = 10 ma 3) output low voltage (port 0, ale, psen ) v ol1 cc C 0.45 v i ol = 3.2 ma 3) output high voltage (ports 1, 2, 3, 5) v oh cc 2.4 0.9 v dd C C v v i oh =C80 m a i oh =C10 m a
c508 data sheet 67 2000-08 output high voltage (port 0 in external bus mode, ale, psen ) v oh2 cc 2.4 0.9 v dd C C v v i oh =C800 m a 4) i oh =C80 m a 4) logic 0 input current (ports 1, 2, 3, 5) i il sr C 10 C 70 m a v in =0.45v logical 0-to-1 transition current (ports 1, 2, 3, 5) i tl sr C 65 C 650 m a v in =2v input leakage current (port 0, an0-7 (port 4), ea ) i li cc C 1 m a0.45< v in < v dd pin capacitance c io cc C 10 pf f c =1mhz, t a =25 c overload current i ov sr C 5ma 11) 12) programming voltage 1) v pp sr 10.9 12.1 v 11.5 v 5% see the following pages for notes. dc characteristics (contd) (operating conditions apply) parameter symbol limit values unit test condition min. max.
c508 data sheet 68 2000-08 power supply current parameter symbol limit values unit test condition typ. 12) max. 13) active mode c508-4e 5 mhz 10 mhz i dd i dd 22.7 44.5 26.6 50.7 ma ma 6) c508-4r 5 mhz 10 mhz i dd i dd t.b.d. t.b.d. t.b.d. t.b.d. ma ma 6) idle mode c508-4e 5 mhz 10 mhz i dd i dd 18.8 20.1 22.1 24.3 ma ma 7) c508-4r 5 mhz 10 mhz i dd i dd t.b.d. t.b.d. t.b.d. t.b.d. ma ma 7) active mode with slow-down enabled c508-4e 5 mhz 10 mhz i dd i dd 6.5 8.8 7.5 10.0 ma ma 8) c508-4r 5 mhz 10 mhz i dd i dd t.b.d. t.b.d. t.b.d. t.b.d. ma ma 8) idle mode with slow-down enabled c508-4e 5 mhz 10 mhz i dd i dd 6.4 8.2 7.5 9.2 ma ma 9) c508-4r 5 mhz 10 mhz i dd i dd t.b.d. t.b.d. t.b.d. t.b.d. ma ma 9) power-down mode c508-4e i pd 0.5 20.0 m a v dd =2 ? 5.5 v 5) c508-4r i pd t.b.d. t.b.d. m a v dd =2 ? 5.5 v 5)
c508 data sheet 69 2000-08 notes: 1) applicable to c508-4e only. 2) applicable to c508-4r only. 3) capacitive loading on ports 0 and 2 may cause spurious noise pulses to be superimposed on the v ol of ale and port 3. the noise is due to external bus capacitance discharging into the port 0 and port 2 pins when these pins make 1-to-0 transitions during bus operation. in the worst case (capacitive loading > 100 pf), the noise pulse on ale line may exceed 0.8 v. in such cases it may be desirable to qualify ale with a schmitt-trigger, or use an address latch with a schmitt-trigger strobe input. 4) capacitive loading on ports 0 and 2 may cause the v oh on ale and psen to momentarily fall below the 0.9 v dd specification when the address lines are stabilizing. 5) i pd (power-down mode) is measured under following conditions: ea = port 0 = v ss ; reset = v ss ; xtal2 = n.c.; xtal1 = v ss ; v agnd = v ss ; v aref = v dd ; all other pins are disconnected. 6) i dd (active mode) is measured with: xtal1 driven with t r , t f =5ns, v il = v ss + 0.5 v, v ih = v dd C 0.5 v; xtal2 = n.c.; ea =port 0= v dd ; reset = v dd ; all other pins are disconnected. i dd would be slightly higher if the crystal oscillator is used (approx. 1 ma). 7) i dd (idle mode) is measured with all output pins disconnected and with all peripherals disabled; xtal1 driven with t r , t f = 5 ns, v il = v ss +0.5v, v ih = v dd C 0.5 v; xtal2 = n.c.; reset = ea = v ss ; port0 = v dd ; all other pins are disconnected. 8) i dd (active mode with slow-down mode) is measured with all output pins disconnected and with all peripherals disabled; xtal1 driven with t r , t f =5ns, v il = v ss + 0.5 v, v ih = v dd C 0.5 v; xtal2 = n.c.; reset = ea = v ss ; port0 = v dd ; all other pins are disconnected; the microcontroller is put into slow-down mode by software. 9) i dd (idle mode with slow-down mode) is measured all output pins disconnected and with all peripherals disabled; xtal1 driven with t r , t f =5ns, v il = v ss + 0.5 v, v ih = v dd C 0.5 v; xtal2 = n.c.; reset = ea = v ss ; port0 = v dd ; all other pins are disconnected; the microcontroller is put into idle mode with slow-down mode enabled by software. 10) overload conditions under operating conditions are exceeded, i.e. the voltage on any pin exceeds the specified range (i.e. v ov > v dd + 0.5 v or v ov < v ss C 0.5 v). the absolute sum of input currents on all port pins may not exceed 50 ma. the supply voltage v dd and v ss must remain within the specified limits. 11) not 100% tested, guaranteed by design characterization 12) the typical i dd values are periodically measured at t a = + 25 c but not 100% tested. 13) the maximum i dd values are measured under worst case conditions ( t a = 0 c or C 40 c and v dd =5.5v).
c508 data sheet 70 2000-08 figure 32 i dd diagram mct04103 f osc mhz i dd ma 5 0 678 10 40 30 20 10 50 c508-4e idle + slow down mode active + slow down mode idle mode active mode i ddtyp i ddmax 9
c508 data sheet 71 2000-08 power supply current calculation formulas parameter symbol formula active mode c508-4e i dd typ i dd max 4.37 f osc + 0.80 4.82 f osc + 2.53 c508-4r i dd typ i dd max t.b.d. t.b.d. idle mode c508-4e i dd typ i dd max 0.25 f osc + 17.59 0.45 f osc + 19.81 c508-4r i dd typ i dd max t.b.d. t.b.d. active mode with slow-down enabled c508-4e i dd typ i dd max 0.47 f osc + 4.17 0.50 f osc + 5.02 c508-4r i dd typ i dd max t.b.d. t.b.d. idle mode with slow-down enabled c508-4e i dd typ i dd max 0.36 f osc + 4.61 0.35 f osc + 5.68 c508-4r i dd typ i dd max t.b.d. t.b.d.
c508 data sheet 72 2000-08 further timing conditions: t adc min = 500 ns and t in = 1/(2 f osc ) = 2 tcl a/d converter characteristics (operating conditions apply) parameter symbol limit values unit test condition min. max. analog input voltage v ain sr v agnd v aref v 1) sample time t s cc C64 t in 32 t in 16 t in 8 t in ns prescaler ? 32 prescaler ? 16 prescaler ? 8 prescaler ? 4 conversion cycle time t adcc cc C 384 t in 192 t in 96 t in 48 t in ns prescaler ? 32 prescaler ? 16 prescaler ? 8 prescaler ? 4 total unadjusted error tue cc C 2lsb v agnd v ain v aref 4) internal resistance of reference voltage source r aref sr C t adc / 250 C 0.25 k w t adc in [ns] 5)6) internal resistance of analog source r asrc sr C t s / 500 C 0.25 k w t s in [ns] 2)6) adc input capacitance c ain cc C 50 pf 6) clock calculation table clock prescaler ratio adcl1, 0 t adc t s t adcc ? 32 1 1 32 t in 64 t in 384 t in ? 16 1 0 16 t in 32 t in 192 t in ? 8 0 1 8 t in 16 t in 96 t in ? 4 0 0 4 t in 8 t in 48 t in
c508 data sheet 73 2000-08 notes: 1) v ain may exceed v agnd or v aref up to the absolute maximum ratings. however, the conversion result in these cases will be 00 h or ff h , respectively. 2) during the sample time the input capacitance c ain must be charged/discharged by the external source. the internal resistance of the analog source must allow the capacitance to reach their final voltage level within t s . after the end of the sample time t s , changes of the analog input voltage have no effect on the conversion result. 3) this parameter includes the sample time t s , the time for determining the digital result. values for the conversion clock t adc depend on programming and can be taken from the table on the previous page. 4) t ue (max.) is tested at C 40 t a 85 c; v dd 5.5 v; v aref v dd + 0.1 v and v ss v agnd . it is guaranteed by design characterization for all other voltages within the defined voltage range. if an overload condition occurs on maximum 2 unused analog input pins and the absolute sum of input overload currents on all analog input pins does not exceed 10 ma, an additional conversion error of 1/2 lsb is permissible. if a conversion is started during a reset calibration phase, t ue (max.) will be 6 lsb. 5) during the conversion the adcs capacitance must be repeatedly charged or discharged. the internal resistance of the reference source must allow the capacitance to reach their final voltage level within the indicated time. the maximum internal resistance results from the programmed conversion timing. 6) not 100% tested, but guaranteed by design characterization.
c508 data sheet 74 2000-08 definition of internal timing the internal operation of the c508 is controlled by the internal cpu clock f cpu which is derived from the oscillator clock. the high time and the low time of the cpu clock at 50% duty cycle is referred to as a tcl. the specification of the external timing (ac characteristics) is given in terms of this basic unit. figure 33 relationship between oscillator and cpu clock mcs04104 tcl f osc tcl 4tcl f cpu
c508 data sheet 75 2000-08 a c characteristics ( o perating conditions apply) ( c l for port 0, ale and psen outputs = 100 pf; c l for all other outputs = 80 pf) parameter symbol limit values unit 10-mhz clock duty cycle 0.5 to 0.5 variable clock 1 / 4 tcl = 5 mhz to 10 mhz min. max. min. max. program memory characteristics ale pulse width t lhll cc 35 C 2tcl C 15 C ns address setup to ale t avll cc 10 C tcl C 15 C ns address hold after ale t llax cc 10 C tcl C 15 C ns ale low to valid instr in t lliv sr C 55 C 4 tcl C 45 ns ale to psen t llpl cc 10 C tcl C 15 C ns psen pulse width t plph cc 60 C 3 tcl C 15 C ns psen to valid instr in t pliv sr C 25 C 3 tcl C 50 ns input instruction hold after psen t pxix sr 0 C 0 C ns input instruction float after psen t pxiz 1) sr C 20 C tcl C 5 ns address valid after psen t pxav 1) cc 20 C tcl C 5 C ns address to valid instr in t aviv sr C 65 C 5 tcl C 60 ns address float to psen t azpl cc C 5 C C 5 C ns
c508 data sheet 76 2000-08 external data memory characteristics rd pulse width t rlrh cc 120 C 6 tcl C 30 C ns wr pulse width t wlwh cc 120 C 6 tcl C 30 C ns address hold after ale t llax2 cc 35 C 2 tcl C15 C ns rd to valid data in t rldv sr C 75 C 5 tcl C 50 ns data hold after rd t rhdx sr 0 C 0 C ns data float after rd t rhdz sr C 38 C 2 tcl C 12 ns ale to valid data in t lldv sr C 150 C 8 tcl C 50 ns address to valid data in t avdv sr C 150 C 9 tcl C 75 ns ale to wr or rd t llwl cc 60 90 3 tcl C 15 3 tcl + 15 ns address valid to wr t avwl cc 70 C 4 tcl C 30 C ns wr or rd high to ale high t whlh cc 10 40 tcl C15 tcl + 15 ns data valid to wr transition t qvwx cc 5 C tcl C 20 C ns data setup before wr t qvwh cc 125 C 7 tcl C 50 C ns data hold after wr t whqx cc 5 C tcl C 20 C ns address float after rd t rlaz cc C 0 C 0 ns 1) interfacing the c508 to devices with float times up to 20 ns is permissible. this limited bus contention will not cause any damage to port 0 drivers. a c characteristics (contd) (operating conditions apply) ( c l for port 0, ale and psen outputs = 100 pf; c l for all other outputs = 80 pf) parameter symbol limit values unit 10-mhz clock duty cycle 0.5 to 0.5 variable clock 1 / 4 tcl = 5 mhz to 10 mhz min. max. min. max.
c508 data sheet 77 2000-08 figure 34 program memory read cycle external clock drive characteristics parameter symbol limit values unit variable clock freq. = 5 mhz to 10 mhz min. max. oscillator period t osc sr 100 200 ns high time t 1 sr 50 2 tcl ns low time t 2 sr 50 2 tcl ns rise time t r sr C10ns fall time t f sr C 10 ns mct00096 ale psen port 2 lhll t a8 - a15 a8 - a15 a0 - a7 instr.in a0 - a7 port 0 t avll plph t t llpl t lliv t pliv t azpl t llax t pxiz t pxix t aviv t pxav
c508 data sheet 78 2000-08 figure 35 data memory read cycle mct00097 ale psen port 2 whlh t port 0 rd t lldv t rlrh t llwl t rldv t avll t llax2 t rlaz t avwl t avdv t rhdx t rhdz a0 - a7 from ri or dpl from pcl a0 - a7 instr. in data in a8 - a15 from pch p2.0 - p2.7 or a8 - a15 from dph
c508 data sheet 79 2000-08 figure 36 data memory write cycle figure 37 external clock drive on xtal1 mct00098 ale psen port 2 whlh t port 0 wr t wlwh t llwl t qvwx t avll t llax2 t qvwh t avwl t whqx a0 - a7 from ri or dpl from pcl a0 - a7 instr.in data out a8 - a15 from pch p2.0 - p2.7 or a8 - a15 from dph mct04105 t 1 t r t f t 2 t osc 0.7 v dd 0.2 v dd - 0.1
c508 data sheet 80 2000-08 ac characteristics of programming mode (operating conditions apply) parameter symbol limit values unit min. max. pale pulse width t paw 35 Cns pmsel setup to pale rising edge t pms 10 C ns address setup to pale, prog , or prd falling edge t pas 10 C ns address hold after pale, prog, or prd falling edge t pah 10 C ns address, data setup to prog or prd t pcs 100 C ns address, data hold after prog or prd t pch 0C ns pmsel setup to prog or prd t pms 10 C ns pmsel hold after prog or prd t pmh 10 C ns prog pulse width t pww 100 C m s prd pulse width t prw 100 C ns address to valid data out t pad C75ns prd to valid data out t prd C20ns data hold after prd t pdh 0C ns data float after prd t pdf C20ns prog high between two consecutive prog low pulses t pwh1 1C m s prd high between two consecutive prd low pulses t pwh2 100 C ns xtal clock period t clkp 100 200 ns
c508 data sheet 81 2000-08 figure 38 programming code byte - write cycle timing t paw t pms pah t pas t a8-a13 a0-a7 d0-d7 pcs t pww t pch t t pwh mct03369 h, h pale pmsel1,0 port 2 port 0 prog note: prd must be held high during a programming write cycle.
c508 data sheet 82 2000-08 figure 39 verify code byte - read cycle timing t paw t pms pah t pas t a8-a13 a0-a7 pad t d0-d7 t pdh t pdf prd t pcs t prw t pch t t pwh mct03370 h, h pale pmsel1,0 port 2 port 0 prd note: prog must be high during a programming read cycle.
c508 data sheet 83 2000-08 figure 40 lock bit access timing figure 41 version byte read timing h, l h, l d0, d1 d0, d1 t pcs pms t pmh t t pch pww t pms t prd t t pdh pdf t pmh t prw t mct03371 pmsel1,0 port 0 prog prd note: pale should be low during a lock bit read/write cycle. e. g. fd d0-7 t pcs pms t t pdh pdf t pmh t mct03372 port 2 port 0 prd pmsel1,0 l, h h prw t prd t pch t note: prog must be high during a programming read cycle.
c508 data sheet 84 2000-08 figure 42 rom verification mode 1 rom/otp verification characteristics for c508-4r/c508-4e rom verification mode 1 (c508-4r only) parameter symbol limit values unit min. max. address to valid data t avqv C 10 tcl ns mcs04106 address p1.0-p1.7 p2.0-p2.6 port 0 p2.7, psen = v ss ale = v ih , ea = v ih2 reset = v ih1 inputs: data out t avqv p1.0 - p1.7 = a0 - a7 p2.0 - p2.6 = a8 - a14 p0.0 - p0.7 = d0 - d7 address: data:
c508 data sheet 85 2000-08 figure 43 rom verification mode 2 figure 44 ac testing: input, output waveforms rom/otp verification mode 2 parameter symbol limit values unit min. typ max. ale pulse width t awd C 2tcl C ns ale period t acy C12tclCns data valid after ale t dva CC4tclns data stable after ale t dsa 8tclCCns p3.5 setup to ale low t as CtclCns oscillator frequency t osc 5C10mhz mct02613 t acy t awd t dsa dva t t as data valid ale port 0 p3.5 mcs04107 0.2 v dd - 0.9 test points 0.2 v dd - 0.1 v dd - 0.5 0.45 v ac inputs during testing are driven at v dd - 0.5 v for a logic "1" and 0.45 v for a logic "0". timing measurements are made at v ihmin for a logic "1" and v ilmax for a logic "0".
c508 data sheet 86 2000-08 figure 45 ac testing: float waveforms figure 46 recommended oscillator circuits for crystal oscillator for timing purposes a port pin is no longer floating when a 100 mv change from load voltage occurs and begins to float when a 100 mv change from the loaded v oh / v ol level occurs. i ol / i oh 3 20 ma mct00038 v load v load -0.1 v +0.1 v load v timing reference points v oh -0.1 v +0.1 v ol v external oscillator signal mcs04108 5 -10 mhz c c crystal mode: c = 20 pf + 10 pf (incl. stray capacitance) crystal oscillator mode driving from external source xtal2 xtal1 xtal2 xtal1 n.c.
c508 data sheet 87 2000-08 package information gp m0 5 2 5 0 p-mqfp-64-1 (smd) (plastic metric quad flat package) sorts of packing package outlines for tubes, trays etc. are contained in our data book package information. dimensions in mm smd = surface mounted device
c508 data sheet 88 2000-08 0.25 17.02 0.25 0.05 +0.7 19.05 21.0 max 1 0.3 1.78 0.45 0.1 32 33 64 1 58 index marking 3.0 min 0.5 min 5.65 max 1) 1) -0.55 +0.22 does not include plastic or metal protrusions of 0.25 max per side 4.35 max 1) gpd09257 p-sdip-64-2 (smd) (plastic shrink dual in-line package) sorts of packing package outlines for tubes, trays etc. are contained in our data book package information. dimensions in mm smd = surface mounted device
infineon goes for business excellence business excellence means intelligent approaches and clearly defined processes, which are both constantly under review and ultimately lead to good operating results. better operating results and business excellence mean less idleness and wastefulness for all of us, more professional success, more accurate information, a better overview and, thereby, less frustration and more satisfaction. dr. ulrich schumacher http://www.infineon.com published by infineon technologies ag


▲Up To Search▲   

 
Price & Availability of SAF-C508-4RM

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X